package org.fireflow2.designer.eclipse.editors.xml;

import org.eclipse.ui.editors.text.TextEditor;
import org.eclipse.ui.part.FileEditorInput;
import org.fireflow2.designer.eclipse.editors.xml.ColorManager;
import org.fireflow2.designer.eclipse.editors.xml.XMLConfiguration;
import org.fireflow2.designer.eclipse.editors.xml.XMLDocumentProvider;

public class XMLEditor extends TextEditor {

	private ColorManager colorManager;

	public XMLEditor() {
		super();
		colorManager = new ColorManager();
		setSourceViewerConfiguration(new XMLConfiguration(colorManager));
		setDocumentProvider(new XMLDocumentProvider());
	}
	public void dispose() {
		colorManager.dispose();
		super.dispose();

	}
//	public ISourceViewer createSourceViewer(Composite datafieldsWrapper, IVerticalRuler ruler, int styles){
//		ISourceViewer viewer = super.createSourceViewer(datafieldsWrapper, ruler, styles);
//
//		return null;
//	}
}
